package com.cuiyun97.controller.admin;

import com.cuiyun97.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(tags = "测试接口")
public class TestController {

    @GetMapping("/test")
    @ApiOperation("测试接口")
    public Result test() {
        log.info("测试");
        return Result.success("这是一个测试api");
    }

}
